package com.yunsc.product.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.yunsc.common.validator.ValidationGroups;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @version: 1.0
 * @Author: adan
 * @description:
 * @date: 2024-04-18 8:37
 */
@Data
public class GoodsParamsDTO {

    @NotEmpty(message = "商品id不能为空", groups = {ValidationGroups.Update.class})
    @JsonProperty("goodsId")
    private String goodsId;

    private GoodsBaseDTO form;

    @NotEmpty(message = "商品ids不能为空", groups = {ValidationGroups.Delete.class, ValidationGroups.Sate.class})
    @JsonProperty("goodsIds")
    private List<Integer> goodsIds;

    private boolean state;

}
